package com.yesep.learn.design.common.pojo;

public class Goods {
    private String name;

    private int price;

    public Goods(String name, int price) {
        this.name = name;
        this.price = price;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return String.format("Goods{name='%s',price=%s}", name, price);
    }
}
